#coding=utf-8
from django.http import HttpResponse
from django.shortcuts import render
from django.shortcuts import render_to_response
#表单
def Yidai_Test(request):
    return render_to_response('index.html')
#接收请求数据
def fdl(request):
    #request.encoding='utf-8'
    new_adminname = str(request.GET.get('adminname'))
    new_password = str(request.GET.get('password'))
    new_money = str(request.GET.get('money'))
    new_rate = str(request.GET.get('rate'))
    new_borrowname = str(request.GET.get('borrowname'))
    new_month = str(request.GET.get('month'))
    import OP
    OP.op_duilie(new_adminname, new_password, new_money, new_rate, new_borrowname, new_month)
    return HttpResponse(new_adminname + new_password + new_money + new_rate + new_borrowname + new_month)